Skip to content

Feat: numpy bool array parameters (#261) - #265

Merged
b-re-w merged 1 commit into
developfrom
feat/tp-bool-array
Oct 24, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/tp-bool-array

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 24, 2026

Copy link
Copy Markdown
Member

Closes #261

NDArray[np.bool_] element-only params take the buffer path with 1-byte items (format ?); reads box as np.bool where the interpreter does; only bool stores compile (int/float stores and element arithmetic stay interpreted). Guard refuses other dtypes, strided and read-only views. Also: _numpy_kinds treats pyrefly's typing.Any like Unknown (numpy 2.5.4 stubs type x[0] as Any).

Red: test_buffer_numpy.py on the develop compiler 4 failed, 65 passed. Local 3.15t full suite: 1331 passed, 3 skipped. Benchmark compiled set identical to develop (benchmarks use no numpy).

@b-re-w
b-re-w merged commit f1e6ddf into develop Oct 24, 2026
@b-re-w
b-re-w deleted the feat/tp-bool-array branch October 24, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant